{% if pageCount > 1 %}
<div class="page">
    {% if previous is defined %}
        <a href="{{ path(route, query|merge({(pageParameterName): previous})) }}"  class="prev">&lt;</a>
    {% endif %}

    {% for page in pagesInRange %}
        {% if page != current %}
            <a href="{{ path(route, query|merge({(pageParameterName): page})) }}" class="page_son">{{ page }}</a>
        {% else %}
            <a href="javascript:;" class="page_son click_col">{{ page }}</a>
        {% endif %}

    {% endfor %}

    {% if next is defined %}
        <a href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="next">&gt;</a>
    {% endif %}
</div>
{% endif %}
